package com.ant.cn.filter;

import java.io.IOException;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;



public class Filter01  implements Filter{

	@Override
	public void init(FilterConfig arg0) throws ServletException {
		System.out.println("拦截器 初始化完成1");
		
	}
	
	@Override
	public void doFilter(ServletRequest req, ServletResponse resp,
			FilterChain chain) throws IOException, ServletException {
		//chain.doFilter(req, resp);
		System.out.println("过滤方法执行1");
	}


	@Override
	public void destroy() {
		System.out.println("拦截器 销毁1");
		
	}

}
